home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / etc / sample.Xdefaults.z / sample.Xdefaults
Encoding:
Text File  |  1998-05-21  |  10.5 KB  |  289 lines

  1. ! This is a sample .Xdefaults file.  The resources below are the
  2. ! actual resources used as defaults for XEmacs, although the
  3. ! form of these resources in the XEmacs app-defaults file is
  4. ! slightly different.
  5. ! You can use the examples below as a basis for your own customizations:
  6. ! copy and modify any of the resources below into your own ~/.Xdefaults file.
  7. ! .Xdefaults specifies defaults for all applications, not just XEmacs; it is
  8. ! normally used to customize fonts, colors, and the like, while ~/.emacs is
  9. ! used to change other sorts of (XEmacs-specific) behavior.
  10. ! In general, changes to your .Xdefaults file will not take effect until the
  11. ! next time you restart the window system.  To reload your resources
  12. ! explicitly, use the shell command
  13. !     xrdb -load ~/.Xdefaults
  14. ! The resources will take effect the next time you restart XEmacs.  (Simply
  15. ! creating a new xemacs frame is not enough - you must restart the editor
  16. ! for the changes to take effect.)
  17.  
  18.  
  19. ! Colors and backgrounds.
  20. ! ======================
  21. ! The contrasts of these colors will cause them to map to the appropriate
  22. ! one of "black" or "white" on monochrome systems.
  23. ! The valid color names on your system can be found by looking in the file
  24. ! `rgb.txt', usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/.
  25.  
  26. ! Set the foreground and background colors of the `default' face.
  27. ! The default face colors are the base for most of the other faces'
  28. ! colors.  The default background is gray80, and the default foreground
  29. ! is black.
  30. Emacs.default.attributeBackground:    gray80
  31. Emacs.default.attributeForeground:    black
  32.  
  33. ! Set the modeline colors.
  34. Emacs.modeline*attributeForeground:    Black
  35. Emacs.modeline*attributeBackground:    Gray75
  36.  
  37. ! Set the color of the text cursor.
  38. Emacs.text-cursor*attributeBackground:    Red3
  39.  
  40. ! If you want to set the color of the mouse pointer, do this:
  41. ! Emacs.pointer*attributeForeground:    Black
  42. ! If you want to set the background of the mouse pointer, do this:
  43. ! Emacs.pointer*attributeBackground:    White
  44. ! Note that by default, the pointer foreground and background are the same
  45. ! as the default face.
  46.  
  47. ! Set the menubar colors.  This overrides the default foreground and
  48. ! background colors specified above.
  49. Emacs*menubar*Foreground:        Gray30
  50. Emacs*menubar*Background:        Gray75
  51. ! This is for buttons in the menubar.  
  52. ! Yellow would be better, but that would map to white on monochrome.
  53. Emacs*menubar.buttonForeground:        Blue
  54. Emacs*XlwMenu.selectColor:        ForestGreen
  55. Emacs*XmToggleButton.selectColor:    ForestGreen
  56.  
  57. ! Specify the colors of popup menus.
  58. Emacs*popup*Foreground:            Black
  59. Emacs*popup*Background:            Gray75
  60.  
  61. ! Specify the colors of the various sub-widgets of the dialog boxes.
  62. Emacs*dialog*Foreground:        Black
  63. ! #A5C0C1 is a shade of blue
  64. Emacs*dialog*Background:        #A5C0C1
  65. ! The following three are for Motif dialog boxes ...
  66. Emacs*dialog*XmTextField*Background:    WhiteSmoke
  67. Emacs*dialog*XmText*Background:        WhiteSmoke
  68. Emacs*dialog*XmList*Background:        WhiteSmoke
  69. ! While this one is for Athena dialog boxes.
  70. Emacs*dialog*Command*Background:    WhiteSmoke
  71.  
  72. ! Xlw Scrollbar colors
  73. Emacs*XlwScrollBar.Foreground:        Gray30
  74. Emacs*XlwScrollBar.Background:        Gray75
  75. Emacs*XmScrollBar.Foreground:        Gray30
  76. Emacs*XmScrollBar.Background:        Gray75
  77.  
  78. !
  79. ! The Lucid Scrollbar supports two added resources, SliderStyle is either
  80. ! "plain" (default) or "dimple".  Dimple puts a small dimple in the middle
  81. ! of the slider that depresses when the slider is clicked on.  ArrowPosition is
  82. ! either "opposite" (default) or "same".  Opposite puts the arrows at opposite
  83. ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
  84. !
  85. ! Emacs*XlwScrollBar.SliderStyle:    dimple
  86. ! Emacs*XlwScrollBar.ArrowPosition:  opposite
  87.  
  88.  
  89. !
  90. ! If you want to turn off a toolbar, set its height or width to 0.
  91. ! The correct size value is not really arbitrary.  We only control it
  92. ! this way in order to avoid excess frame resizing when turning the
  93. ! toolbars on and off.
  94. !
  95. ! To change the heights and widths of the toolbars:
  96. !
  97. ! Emacs.topToolBarHeight:        37
  98. ! Emacs.bottomToolBarHeight:        0
  99. ! Emacs.leftToolBarWidth:        0
  100. ! Emacs.rightToolBarWidth:        0
  101.  
  102. Emacs*topToolBarShadowColor:        Gray90
  103. Emacs*bottomToolBarShadowColor:        Gray40
  104. Emacs*backgroundToolBarColor:        Gray75
  105. Emacs*toolBarShadowThickness:        2
  106.  
  107.  
  108. ! If you want to turn off vertical scrollbars, or change the default
  109. ! pixel width of the vertical scrollbars, do it like this (0 width
  110. ! means no vertical scrollbars):
  111. ! Emacs.scrollBarWidth: 0
  112. ! To change it for a particular frame, do this:
  113. ! Emacs*FRAME-NAME.scrollBarWidth: 0
  114.  
  115.  
  116. ! If you want to turn off horizontal scrollbars, or change the default
  117. ! pixel height of the horizontal scrollbars, do it like this (0 height
  118. ! means no horizontal scrollbars):
  119. ! Emacs.scrollBarHeight: 0
  120. ! To change it for a particular frame, do this:
  121. ! Emacs*FRAME-NAME.scrollBarHeight: 0
  122.  
  123.  
  124. ! To dynamically change the labels used for menubar buttons...
  125. ! Emacs*XlwMenu.resourceLabels: True
  126. ! Emacs*XlwMenu.newFrame.labelString: Open Another Window
  127.  
  128. ! To have the Motif scrollbars on the left instead of the right, do this:
  129. ! Emacs*scrollBarPlacement: BOTTOM_LEFT
  130. !
  131. ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
  132.  
  133. ! To have Motif scrollbars act more like Xt scrollbars...
  134. !
  135. ! Emacs*XmScrollBar.translations: #override \n\
  136. !     <Btn1Down>:     PageDownOrRight(0)    \n\
  137. !     <Btn3Down>:     PageUpOrLeft(0)
  138.  
  139. ! Fonts.
  140. ! ======
  141. ! XEmacs requires the use of XLFD (X Logical Font Description) format font
  142. ! names, which look like
  143. !     *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
  144. ! if you use any of the other, less strict font name formats, some of which
  145. ! look like
  146. !         lucidasanstypewriter-12
  147. ! and        fixed
  148. ! and        9x13
  149. ! then XEmacs won't be able to guess the names of the bold and italic versions.
  150. ! All X fonts can be referred to via XLFD-style names, so you should use those
  151. ! forms.  See the man pages for X(1), xlsfonts(1), and xfontsel(1).
  152.  
  153.  
  154. ! The default font for the text area of XEmacs is chosen at run-time
  155. ! by lisp code which tries a number of different possibilities in order
  156. ! of preference.  If you wish to override it, use this:
  157. ! Emacs.default.attributeFont:  -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  158.  
  159. ! If you choose a font which does not have an italic version, you can specify
  160. ! some other font to use for it here:
  161. ! Emacs.italic.attributeFont:  -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
  162. !
  163. ! And here is how you would set the background color of the `highlight' face,
  164. ! but only on the screen named `debugger':
  165. ! Emacs*debugger.highlight.attributeBackground:        PaleTurquoise
  166. ! See the NEWS file (C-h n) for a more complete description of the resource
  167. ! syntax of faces.
  168.  
  169.  
  170. ! Font of the modeline, menubar and pop-up menus.
  171. ! Note that the menubar resources do not use the `face' syntax, since they
  172. ! are X toolkit widgets and thus outside the domain of XEmacs proper.
  173. Emacs*menubar*Font:         -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  174. Emacs*popup*Font:        -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  175.  
  176. ! Font in the Motif dialog boxes.
  177. ! (Motif uses `fontList' while most other things use `font' - if you don't
  178. ! know why you probably don't want to.)
  179. Emacs*XmDialogShell*FontList:    -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  180. Emacs*XmTextField*FontList:    -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  181. Emacs*XmText*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  182. Emacs*XmList*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  183.  
  184. ! Font in the Athena dialog boxes.
  185. ! I think 14-point looks nicer than 12-point.
  186. ! Some people use 12-point anyway because you get more text, but
  187. ! there's no purpose at all in doing this for dialog boxes.
  188.  
  189. Emacs*Dialog*Font:        -*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-*
  190.  
  191. ! Dialog box translations.
  192. ! =======================
  193.  
  194. ! This accelerator binds <return> in a dialog box to <activate> on button1
  195. Emacs*dialog*button1.accelerators:#override\
  196. <KeyPress>Return: ArmAndActivate()\n\
  197. <KeyPress>KP_Enter: ArmAndActivate()\n\
  198. Ctrl<KeyPress>m: ArmAndActivate()\n
  199.  
  200. ! Translations to make the TextField widget behave more like XEmacs
  201. Emacs*XmTextField.translations: #override\n\
  202.     !<Key>osfBackSpace:    delete-previous-character()\n\
  203.     !<Key>osfDelete:    delete-previous-character()\n\
  204.     !Ctrl<Key>h:         delete-previous-character()\n\
  205.     !Ctrl<Key>d:         delete-next-character()\n\
  206.     !Meta<Key>osfDelete:    delete-previous-word()\n\
  207.     !Meta<Key>osfBackSpace:    delete-previous-word()\n\
  208.     !Meta<Key>d:        delete-next-word()\n\
  209.     !Ctrl<Key>k:        delete-to-end-of-line()\n\
  210.     !Ctrl<Key>g:        process-cancel()\n\
  211.     !Ctrl<Key>b:        backward-character()\n\
  212.     !<Key>osfLeft:        backward-character()\n\
  213.     !Ctrl<Key>f:        forward-character()\n\
  214.     !<Key>osfRight:        forward-character()\n\
  215.     !Meta<Key>b:        backward-word()\n\
  216.     !Meta<Key>osfLeft:    backward-word()\n\
  217.     !Meta<Key>f:        forward-word()\n\
  218.     !Meta<Key>osfRight:    forward-word()\n\
  219.     !Ctrl<Key>e:        end-of-line()\n\
  220.     !Ctrl<Key>a:        beginning-of-line()\n\
  221.     !Ctrl<Key>w:        cut-clipboard()\n\
  222.     !Meta<Key>w:        copy-clipboard()\n\
  223.     <Btn2Up>:        copy-primary()\n
  224.  
  225. ! With the XEmacs typeahead it's better to not have space be bound to
  226. ! ArmAndActivate() for buttons that appear in dialog boxes.  This is
  227. ! not 100% Motif compliant but the benefits far outweight the
  228. ! compliancy problem.  
  229. Emacs*dialog*XmPushButton.translations:#override\n\
  230.     <Btn1Down>:         Arm()\n\
  231.     <Btn1Down>,<Btn1Up>: Activate()\
  232.             Disarm()\n\
  233.     <Btn1Down>(2+):     MultiArm()\n\
  234.     <Btn1Up>(2+):       MultiActivate()\n\
  235.     <Btn1Up>:           Activate()\
  236.                 Disarm()\n\
  237.     <Key>osfSelect:      ArmAndActivate()\n\
  238.     <Key>osfActivate:   ArmAndActivate()\n\
  239.     <Key>osfHelp:    Help()\n\
  240.     ~Shift ~Meta ~Alt <Key>Return:    ArmAndActivate()\n\
  241.     <EnterWindow>:      Enter()\n\
  242.     <LeaveWindow>:      Leave()\n
  243.  
  244. ! XIM input method style 
  245. ! ======================= 
  246.  
  247. ! ximStyles is a (whitespace or comma-separated) list of XIMStyles in
  248. ! order of user's preference.  
  249. ! Choose a subset of the following styles or reorder to taste
  250. Emacs*ximStyles: XIMPreeditPosition|XIMStatusArea\
  251.             XIMPreeditPosition|XIMStatusNothing\
  252.             XIMPreeditPosition|XIMStatusNone\
  253.             XIMPreeditNothing|XIMStatusArea\
  254.             XIMPreeditNothing|XIMStatusNothing\
  255.             XIMPreeditNothing|XIMStatusNone\
  256.             XIMPreeditNone|XIMStatusArea\
  257.             XIMPreeditNone|XIMStatusNothing\
  258.             XIMPreeditNone|XIMStatusNone
  259.  
  260. ! XIM Preedit and Status foreground and background
  261. Emacs*EmacsFrame.ximForeground: black
  262. Emacs*EmacsFrame.ximBackground: white
  263.  
  264. ! XIM fontset (defaults to system fontset default)
  265. ! Emacs*EmacsFrame.FontSet: -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
  266.